img {
  display: block;
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/

::-webkit-scrollbar {
  width: 8px;
  height: 5px;
  background-color: #f8f8f9;
}

/*定义滚动条轨道 内阴影+圆角*/

::-webkit-scrollbar-track {
  border-radius: 8px;
  background-color: #f8f8f9;
}

/*定义滑块 内阴影+圆角*/

::-webkit-scrollbar-thumb {
  border-radius: 8px;
  // -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #bcbcbc;
}

input[type='button'],
input[type='submit'],
input[type='search'],
input[type='reset'] {
  -webkit-appearance: none;
}

textarea {
  -webkit-appearance: none;
}

// flex布局
.flex {
  display: -webkit-flex;
  /* Safari */
  display: -moz-flex;
  display: -ms-flex;
  display: flex;

  &-item {
    -webkit-flex: 1;
    -moz-flex: 1;
    -ms-flex: 1;
    flex: 1;
  }
}

// 左侧布局
.chat {
  .user-scroll-bar {
    height: 100%;
    flex: auto;
    overflow: auto;
  }

  &-sider {
    background: #f5f6fa;
    width: 240px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e1e3e8;

    .search-input {
      height: 52px;
      padding: 10px;
      border-bottom: 1px solid #e1e3e8;
    }

    .user {
      &-list {
        flex: auto;

        h3 {
          font-size: 14px;
          color: #7e7e7e;
          font-weight: normal;
          padding: 5px 10px;
          background: #eee;
        }
      }

      &-item {
        padding: 10px;
        align-items: center;
        cursor: pointer;
        position: relative;

        &.active {
          background: #e8e8fa;
        }

        &:after {
          display: block;
          content: '';
          position: absolute;
          left: 10px;
          right: 10px;
          bottom: 0;
          height: 1px;
          background: #e1e3e8;
        }
      }

      &-img {
        width: 38px;
        height: 38px;
        border-radius: 4px;
        background: #ccc;
        margin-right: 10px;
        overflow: hidden;

        img {
          width: 38px;
          height: 38px;
          display: block;
        }
      }

      &-name {
        font-size: 13px;
        margin-bottom: 2px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }

      &-msg {
        font-size: 12px;
        color: #7e7e7e;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
    }
  }
}

.ivu-modal-header,
.ivu-modal-footer {
  border: none !important;
}

.ivu-modal-footer .ivu-btn-primary,
.ivu-modal-footer .ivu-btn-primary:hover {
  background: none !important;
  border-color: #f8a42b;
  color: #f8a42b;
}

.ivu-modal-footer .ivu-btn-error,
.ivu-modal-footer .ivu-btn-error:hover {
  background: linear-gradient(90deg, rgba(249, 195, 78, 1), rgba(248, 158, 39, 1));
  border-color: #f8a42b;
  color: #fff;
}

.ivu-input:hover,
.ivu-input:focus {
  border-color: #f8a42b !important;
  box-shadow: initial !important;
}
